import request from '@/utils/request'

// 查询房屋造价数据列表
export function getAllHosingCost(query) {
  return request({
    url: '/house/getAllHouse',
    method: 'get',
    params: query
  })
}

// 查询房屋造价数据详细
export function getHosingCost(id) {
  return request({
    url: '/house/getHouseById?id=' + id,
    method: 'get'
  })
}

// 修改房屋造价数据
export function updateHosingCost(data) {
  return request({
    url: '/house/updateHouse',
    method: 'post',
    data: data
  })
}

// 删除修改房屋造价数据
export function delHosingCost(id) {
  return request({
    url: '/house/deleteHouse/' + id,
    method: 'post'
  })
}